<?php
$navbar = $event->sender;
if(Yii::app()->user->isGuest) {
//	if(!$isActive && 'user' !== $activeController && 'login' !== $activeAction) {
		$navbar->addItem(array(
			'label' => 'Login',
			'url' => array('/users/user/login'),
		),array('u',0));
//	}
}
else {
	$navbar->addItem(array('label' => 'Logout','url' => array('/users/user/logout')),array('u',1));
}
